module Fighter {
	/**
	 * 自爆型飞机子类 ---刘伟 
	 * */
	export class PlaneSelfDestruction extends BasicFly {

		public move(deltaTimeStamp: number) {
			if (this.showPanle.name == "AirBattle") {
				if (this.showPanle.player.isLiving) {
					this.flyToPoint(GameUtil.PlayerMessage.instance.player_position);
				}//匀速飞行
				else {
					this.flyToPoint(new egret.Point(320, 1200));
				}

				//this.fly.y+=this.speed*deltaTime/1000;//加速飞行
			}
			else {
				this.flyToPoint(GameUtil.PlayerMessage.createMsg().HomePoint);
			}

		}
		
	}

}